<?php
    if(isset($_POST['updateLocationId']))
    {
        $LinkYoutube = $_POST['updateLocationId'];

        if(isset($_POST['updateLocationValue']))
        {
            $Location = $_POST['updateLocationValue'];
            if(empty($Location))
            {
                echo "Le lieu est vide";
            }
            else
            {
                echo "Updating location of video {$LinkYoutube}: {$Location}";
                echo "<br />facade: {$Location}";
                updateLocation($LinkYoutube, $Location);
            }
        }
    }
?>
